Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🛠️ 작업 내용
User 엔티티에 @SQLRestriction("deleted_at IS NULL") 어노테이션을 붙여서 User와 관계되는(join포함) 모든 도메인의 레포지토리에서 쿼리할때 삭제된 유저인지 검증을 거칩니다.
단, 네이티브 쿼리에서는 동작하지 않는다고 하여 네이티브 쿼리를 사용하는 곳에서는 수동으로 deleted_at IS NULL을 붙여주었습니다.
각 도메인에서 메서드 몇개 정도 테스트 한번씩 진행해주시고 만약 안 돌아가면 알려주세요!!
회원 탈퇴를 하게 되면 deletedAt 에 탈퇴 시간을 갖게 됩니다.
✅ PR 유형
✅ Check List
🔗 관련 이슈
💬 기타 참고 사항